package com.loong.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.loong.pojo.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 根据用户id查询其角色
     * @param uid 用户id
     * @return 角色列表
     */
    List<String> selectListByUid(long uid);
}

